﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebApiV3.Domain
{
    public interface IRespository<T>
    {
        IQueryable<T> Table { get; }

        void Insert(T entity);
        void InsertBulk(IEnumerable<T> list);
        void Delete(T entity);
        void Delete(int Id);

        void Delete(IEnumerable<T> entities);
        void Update(T entity);

        T GetById(int Id);

    }
}
